placesview: no url for networks
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 10 Aug 2015 17:46:23 +0000 (14:46 -0300)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Mon, 10 Aug 2015 17:59:50 +0000 (14:59 -0300)
We are not showing the URL of network locations
anymore, since they are distracting and not
necessary.

The code, however, forgot to cleanup the URL,
so we are still showing the URL for network
locations.

Fix that by properly cleanup the URL for network
locations.

gtk/gtkplacesview.c

index 9c5f334248bdb52c02253d393367767e680931e1..9c05db2b2df2aa8c5b5e93e4fe4b2c9c70efbcb5 100644 (file)
@@ -734,6 +734,9 @@ add_mount (GtkPlacesView *view,
   schema = g_uri_parse_scheme (uri);
   is_network = g_strcmp0 (schema, "file") != 0;
 
+  if (is_network)
+    g_clear_pointer (&path, g_free);
+
   if (!g_mount_is_shadowed (mount))
     {
       GtkWidget *row;